<?php

include_once '../../library/config.php';
include_once '../../model/feedbacklist.php';

try {
    $entity = new FeedBackList();
    $entity->request();
    $entity->remove(array('signtoken')); 
    if (!$entity['myid']) {
        $entity->KeyValue("myid", 0);
    }
    $entity->KeyValue("shijian", time());
    $entity->append()->submit();
    $entity->keyvalue("id", $entity->autoid);
} catch (Exception $ex) {
    $entity->rsscode($ex);
}
echo $entity->toJson();

